package com.hx.er.mapper;

import java.util.List;
import java.util.Map;

import com.hx.er.bean.base.RestraurantBean;

public interface IRestraurantMapper {
	public List<RestraurantBean> getRestList(Map<String, Object> conditions);

	public int getRestCount(Map<String, Object> conditions);

	public RestraurantBean getRestAliveById(long restId);

	public RestraurantBean getRestById(long restId);

	public RestraurantBean getNewestRest();

	public int reviveRest(RestraurantBean restBean);

	public int deleteRest(RestraurantBean restBean);

	public int updateRest(RestraurantBean restBean);

	public void insertRestWithoutId(RestraurantBean restBean);
	
	public int updateRestAddr(RestraurantBean restBean);

	public int checkServerName(RestraurantBean restBean);
}
